VERSION 5.00
Begin VB.Form frmEditor_Set 
   Caption         =   "Set Editor"
   ClientHeight    =   4470
   ClientLeft      =   120
   ClientTop       =   450
   ClientWidth     =   11370
   ControlBox      =   0   'False
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   4470
   ScaleWidth      =   11370
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton cmdCancel 
      Caption         =   "Cancel"
      Height          =   375
      Left            =   9000
      TabIndex        =   45
      Top             =   3960
      Width           =   1455
   End
   Begin VB.CommandButton cmdDelete 
      Caption         =   "Delete"
      Height          =   375
      Left            =   6240
      TabIndex        =   44
      Top             =   3960
      Width           =   1455
   End
   Begin VB.CommandButton cmdSave 
      Caption         =   "Save"
      Height          =   375
      Left            =   3360
      TabIndex        =   43
      Top             =   3960
      Width           =   1455
   End
   Begin VB.Frame fraSetData 
      Caption         =   "Set Data"
      Height          =   3735
      Left            =   2760
      TabIndex        =   2
      Top             =   120
      Width           =   8535
      Begin VB.HScrollBar scrlStatBonus 
         Height          =   255
         Index           =   12
         LargeChange     =   10
         Left            =   7320
         Max             =   100
         TabIndex        =   58
         Top             =   2280
         Width           =   855
      End
      Begin VB.HScrollBar scrlStatBonus 
         Height          =   255
         Index           =   11
         LargeChange     =   10
         Left            =   6480
         Max             =   100
         TabIndex        =   56
         Top             =   1920
         Width           =   855
      End
      Begin VB.HScrollBar scrlStatBonus 
         Height          =   255
         Index           =   10
         LargeChange     =   10
         Left            =   4080
         Max             =   100
         TabIndex        =   53
         Top             =   1920
         Width           =   855
      End
      Begin VB.HScrollBar scrlStatBonus 
         Height          =   255
         Index           =   9
         LargeChange     =   10
         Left            =   1560
         Max             =   100
         TabIndex        =   52
         Top             =   1920
         Width           =   855
      End
      Begin VB.HScrollBar scrlStatBonus 
         Height          =   255
         Index           =   8
         LargeChange     =   10
         Left            =   7320
         Max             =   100
         TabIndex        =   50
         Top             =   1560
         Width           =   855
      End
      Begin VB.HScrollBar scrlStatBonus 
         Height          =   255
         Index           =   7
         LargeChange     =   10
         Left            =   7320
         Max             =   100
         TabIndex        =   49
         Top             =   1200
         Width           =   855
      End
      Begin VB.HScrollBar scrlItems 
         Height          =   255
         Left            =   4560
         Min             =   1
         TabIndex        =   47
         Top             =   600
         Value           =   1
         Width           =   2415
      End
      Begin VB.TextBox txtName 
         Height          =   285
         Left            =   840
         TabIndex        =   42
         Top             =   360
         Width           =   3375
      End
      Begin VB.HScrollBar scrlStatBonus 
         Height          =   255
         Index           =   1
         LargeChange     =   10
         Left            =   960
         Max             =   255
         TabIndex        =   20
         Top             =   1200
         Width           =   855
      End
      Begin VB.HScrollBar scrlStatBonus 
         Height          =   255
         Index           =   2
         LargeChange     =   10
         Left            =   3000
         Max             =   255
         TabIndex        =   19
         Top             =   1200
         Width           =   855
      End
      Begin VB.HScrollBar scrlStatBonus 
         Height          =   255
         Index           =   3
         LargeChange     =   10
         Left            =   5160
         Max             =   255
         TabIndex        =   18
         Top             =   1200
         Width           =   855
      End
      Begin VB.HScrollBar scrlStatBonus 
         Height          =   255
         Index           =   4
         LargeChange     =   10
         Left            =   960
         Max             =   255
         TabIndex        =   17
         Top             =   1560
         Width           =   855
      End
      Begin VB.HScrollBar scrlStatBonus 
         Height          =   255
         Index           =   5
         LargeChange     =   10
         Left            =   3000
         Max             =   255
         TabIndex        =   16
         Top             =   1560
         Width           =   855
      End
      Begin VB.HScrollBar scrlStatBonus 
         Height          =   255
         Index           =   6
         LargeChange     =   10
         Left            =   5160
         Max             =   255
         TabIndex        =   15
         Top             =   1560
         Width           =   855
      End
      Begin VB.HScrollBar scrlElementRessist 
         Height          =   255
         Index           =   1
         LargeChange     =   10
         Left            =   3000
         Max             =   100
         TabIndex        =   14
         Top             =   2280
         Width           =   855
      End
      Begin VB.HScrollBar scrlElementDamage 
         Height          =   255
         Index           =   1
         LargeChange     =   10
         Left            =   3000
         Max             =   100
         TabIndex        =   13
         Top             =   2640
         Width           =   855
      End
      Begin VB.HScrollBar scrlElementRessist 
         Height          =   255
         Index           =   2
         LargeChange     =   10
         Left            =   960
         Max             =   100
         TabIndex        =   12
         Top             =   2280
         Width           =   855
      End
      Begin VB.HScrollBar scrlElementDamage 
         Height          =   255
         Index           =   2
         LargeChange     =   10
         Left            =   960
         Max             =   100
         TabIndex        =   11
         Top             =   2640
         Width           =   855
      End
      Begin VB.HScrollBar scrlElementRessist 
         Height          =   255
         Index           =   3
         LargeChange     =   10
         Left            =   3000
         Max             =   100
         TabIndex        =   10
         Top             =   3000
         Width           =   855
      End
      Begin VB.HScrollBar scrlElementDamage 
         Height          =   255
         Index           =   3
         LargeChange     =   10
         Left            =   3000
         Max             =   100
         TabIndex        =   9
         Top             =   3360
         Width           =   855
      End
      Begin VB.HScrollBar scrlElementRessist 
         Height          =   255
         Index           =   4
         LargeChange     =   10
         Left            =   5160
         Max             =   100
         TabIndex        =   8
         Top             =   2280
         Width           =   855
      End
      Begin VB.HScrollBar scrlElementDamage 
         Height          =   255
         Index           =   4
         LargeChange     =   10
         Left            =   5160
         Max             =   100
         TabIndex        =   7
         Top             =   2640
         Width           =   855
      End
      Begin VB.HScrollBar scrlElementRessist 
         Height          =   255
         Index           =   5
         LargeChange     =   10
         Left            =   5160
         Max             =   100
         TabIndex        =   6
         Top             =   3000
         Width           =   855
      End
      Begin VB.HScrollBar scrlElementDamage 
         Height          =   255
         Index           =   5
         LargeChange     =   10
         Left            =   5160
         Max             =   100
         TabIndex        =   5
         Top             =   3360
         Width           =   855
      End
      Begin VB.HScrollBar scrlElementRessist 
         Height          =   255
         Index           =   6
         LargeChange     =   10
         Left            =   960
         Max             =   100
         TabIndex        =   4
         Top             =   3000
         Width           =   855
      End
      Begin VB.HScrollBar scrlElementDamage 
         Height          =   255
         Index           =   6
         LargeChange     =   10
         Left            =   960
         Max             =   100
         TabIndex        =   3
         Top             =   3360
         Width           =   855
      End
      Begin VB.Label lblStatBonus 
         AutoSize        =   -1  'True
         Caption         =   "+ Spell Mul: 0"
         Height          =   195
         Index           =   0
         Left            =   6000
         TabIndex        =   59
         Top             =   2280
         UseMnemonic     =   0   'False
         Width           =   1440
      End
      Begin VB.Label lblStatBonus 
         AutoSize        =   -1  'True
         Caption         =   "+ Crit Mul: 0"
         Height          =   195
         Index           =   11
         Left            =   5280
         TabIndex        =   57
         Top             =   1920
         UseMnemonic     =   0   'False
         Width           =   840
      End
      Begin VB.Label lblStatBonus 
         AutoSize        =   -1  'True
         Caption         =   "+ MP Regen: 0"
         Height          =   195
         Index           =   10
         Left            =   2640
         TabIndex        =   55
         Top             =   1920
         UseMnemonic     =   0   'False
         Width           =   1080
      End
      Begin VB.Label lblStatBonus 
         AutoSize        =   -1  'True
         Caption         =   "+ HP Regen: 0"
         Height          =   195
         Index           =   9
         Left            =   120
         TabIndex        =   54
         Top             =   1920
         UseMnemonic     =   0   'False
         Width           =   1065
      End
      Begin VB.Label lblStatBonus 
         AutoSize        =   -1  'True
         Caption         =   "+ MoveSp: 0"
         Height          =   195
         Index           =   8
         Left            =   6120
         TabIndex        =   51
         Top             =   1560
         UseMnemonic     =   0   'False
         Width           =   915
      End
      Begin VB.Label lblStatBonus 
         AutoSize        =   -1  'True
         Caption         =   "+ LiLe: 0"
         Height          =   195
         Index           =   7
         Left            =   6120
         TabIndex        =   48
         Top             =   1200
         UseMnemonic     =   0   'False
         Width           =   615
      End
      Begin VB.Label lblItems 
         Caption         =   "Num Of Items In Set:"
         Height          =   255
         Left            =   4560
         TabIndex        =   46
         Top             =   360
         Width           =   2415
      End
      Begin VB.Label Label1 
         Caption         =   "Name:"
         Height          =   255
         Left            =   120
         TabIndex        =   41
         Top             =   360
         Width           =   615
      End
      Begin VB.Label lblStatBonus 
         AutoSize        =   -1  'True
         Caption         =   "+ Str: 0"
         Height          =   180
         Index           =   1
         Left            =   120
         TabIndex        =   40
         Top             =   1200
         UseMnemonic     =   0   'False
         Width           =   585
      End
      Begin VB.Label lblStatBonus 
         AutoSize        =   -1  'True
         Caption         =   "+ Vit: 0"
         Height          =   180
         Index           =   2
         Left            =   2040
         TabIndex        =   39
         Top             =   1200
         UseMnemonic     =   0   'False
         Width           =   585
      End
      Begin VB.Label lblStatBonus 
         AutoSize        =   -1  'True
         Caption         =   "+ Int: 0"
         Height          =   180
         Index           =   3
         Left            =   4320
         TabIndex        =   38
         Top             =   1200
         UseMnemonic     =   0   'False
         Width           =   585
      End
      Begin VB.Label lblStatBonus 
         AutoSize        =   -1  'True
         Caption         =   "+ Blck: 0"
         Height          =   180
         Index           =   4
         Left            =   120
         TabIndex        =   37
         Top             =   1560
         UseMnemonic     =   0   'False
         Width           =   690
      End
      Begin VB.Label lblStatBonus 
         AutoSize        =   -1  'True
         Caption         =   "+ Dex: 0"
         Height          =   180
         Index           =   5
         Left            =   2040
         TabIndex        =   36
         Top             =   1560
         UseMnemonic     =   0   'False
         Width           =   660
      End
      Begin VB.Label lblStatBonus 
         AutoSize        =   -1  'True
         Caption         =   "+ Crit: 0"
         Height          =   180
         Index           =   6
         Left            =   4320
         TabIndex        =   35
         Top             =   1560
         UseMnemonic     =   0   'False
         Width           =   645
      End
      Begin VB.Label Label9 
         Caption         =   "Blck is only for shields. Crit is only for weps. 30% max"
         ForeColor       =   &H000000FF&
         Height          =   255
         Left            =   120
         TabIndex        =   34
         Top             =   960
         Width           =   4215
      End
      Begin VB.Label lblElementRessist 
         AutoSize        =   -1  'True
         Caption         =   "+ FiRe: 0"
         Height          =   180
         Index           =   1
         Left            =   2040
         TabIndex        =   33
         Top             =   2280
         UseMnemonic     =   0   'False
         Width           =   690
      End
      Begin VB.Label lblElementDamage 
         AutoSize        =   -1  'True
         Caption         =   "+ FiDa: 0"
         Height          =   180
         Index           =   1
         Left            =   2040
         TabIndex        =   32
         Top             =   2640
         UseMnemonic     =   0   'False
         Width           =   705
      End
      Begin VB.Label lblElementRessist 
         AutoSize        =   -1  'True
         Caption         =   "+ CoRe: 0"
         Height          =   180
         Index           =   2
         Left            =   120
         TabIndex        =   31
         Top             =   2280
         UseMnemonic     =   0   'False
         Width           =   765
      End
      Begin VB.Label lblElementDamage 
         AutoSize        =   -1  'True
         Caption         =   "+ CoDa: 0"
         Height          =   180
         Index           =   2
         Left            =   120
         TabIndex        =   30
         Top             =   2640
         UseMnemonic     =   0   'False
         Width           =   780
      End
      Begin VB.Label Crit 
         BackStyle       =   0  'Transparent
         Caption         =   "Crit%:"
         Height          =   255
         Left            =   7440
         TabIndex        =   29
         Top             =   120
         Width           =   495
      End
      Begin VB.Label lblElementRessist 
         AutoSize        =   -1  'True
         Caption         =   "+ LiRe: 0"
         Height          =   180
         Index           =   3
         Left            =   2040
         TabIndex        =   28
         Top             =   3000
         UseMnemonic     =   0   'False
         Width           =   690
      End
      Begin VB.Label lblElementDamage 
         AutoSize        =   -1  'True
         Caption         =   "+ LiDa: 0"
         Height          =   180
         Index           =   3
         Left            =   2040
         TabIndex        =   27
         Top             =   3360
         UseMnemonic     =   0   'False
         Width           =   705
      End
      Begin VB.Label lblElementRessist 
         AutoSize        =   -1  'True
         Caption         =   "+ PoRe: 0"
         Height          =   180
         Index           =   4
         Left            =   4080
         TabIndex        =   26
         Top             =   2280
         UseMnemonic     =   0   'False
         Width           =   750
      End
      Begin VB.Label lblElementDamage 
         AutoSize        =   -1  'True
         Caption         =   "+ PoDa: 0"
         Height          =   180
         Index           =   4
         Left            =   4080
         TabIndex        =   25
         Top             =   2640
         UseMnemonic     =   0   'False
         Width           =   765
      End
      Begin VB.Label lblElementRessist 
         AutoSize        =   -1  'True
         Caption         =   "+ PuRe: 0"
         Height          =   180
         Index           =   5
         Left            =   4080
         TabIndex        =   24
         Top             =   3000
         UseMnemonic     =   0   'False
         Width           =   750
      End
      Begin VB.Label lblElementDamage 
         AutoSize        =   -1  'True
         Caption         =   "+ PuDa: 0"
         Height          =   180
         Index           =   5
         Left            =   4080
         TabIndex        =   23
         Top             =   3360
         UseMnemonic     =   0   'False
         Width           =   765
      End
      Begin VB.Label lblElementRessist 
         AutoSize        =   -1  'True
         Caption         =   "+ DaRe: 0"
         Height          =   180
         Index           =   6
         Left            =   120
         TabIndex        =   22
         Top             =   3000
         UseMnemonic     =   0   'False
         Width           =   765
      End
      Begin VB.Label lblElementDamage 
         AutoSize        =   -1  'True
         Caption         =   "+ DaDa: 0"
         Height          =   180
         Index           =   6
         Left            =   120
         TabIndex        =   21
         Top             =   3360
         UseMnemonic     =   0   'False
         Width           =   780
      End
   End
   Begin VB.Frame Frame1 
      Caption         =   "Set List"
      Height          =   4215
      Left            =   120
      TabIndex        =   0
      Top             =   120
      Width           =   2535
      Begin VB.ListBox lstSets 
         Height          =   3765
         Left            =   120
         TabIndex        =   1
         Top             =   240
         Width           =   2295
      End
   End
End
Attribute VB_Name = "frmEditor_Set"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdCancel_Click()
    Call SetEditorCancel
End Sub

Private Sub cmdDelete_Click()
    Dim tmpIndex As Long
    
    ClearSet lstSets.ListIndex + 1
    
    tmpIndex = lstSets.ListIndex
    lstSets.RemoveItem tmpIndex
    lstSets.AddItem tmpIndex + 1 & ": " & Sets(tmpIndex + 1).Name, tmpIndex
    lstSets.ListIndex = tmpIndex
    
    SetEditorInit
End Sub

Private Sub cmdSave_Click()
    Call SetEditorOk
End Sub

Private Sub lstSets_Click()
    Call SetEditorInit
End Sub

Private Sub scrlElementDamage_Change(Index As Integer)
Dim text As String
    
    Select Case Index
        Case 1
            text = "+ FiDa: "
        Case 2
            text = "+ CoDa: "
        Case 3
            text = "+ LiDa: "
        Case 4
            text = "+ PoDa: "
        Case 5
            text = "+ PuDa: "
        Case 6
            text = "+ DaDa:"
    End Select
            
    lblElementDamage(Index).Caption = text & scrlElementDamage(Index).Value
    Sets(EditorIndex).ElementDamage(Index, scrlItems.Value) = scrlElementDamage(Index).Value
    
End Sub

Private Sub scrlElementRessist_Change(Index As Integer)
Dim text As String
    
    Select Case Index
        Case 1
            text = "+ FiRe: "
        Case 2
            text = "+ CoRe: "
        Case 3
            text = "+ LiRe: "
        Case 4
            text = "+ PoRe: "
        Case 5
            text = "+ PuRe: "
        Case 6
            text = "+ DaRe:"
    End Select
            
    lblElementRessist(Index).Caption = text & scrlElementRessist(Index).Value
    Sets(EditorIndex).ElementRessist(Index, scrlItems.Value) = scrlElementRessist(Index).Value
    
End Sub

Private Sub scrlItems_Change()
    Dim i As Long
    
    lblItems.Caption = "Num Of Items In Set: " & scrlItems.Value
    For i = 1 To Stats.Stat_Count - 2
        scrlStatBonus(i).Value = Sets(lstSets.ListIndex + 1).Stat(i, scrlItems.Value)
    Next
        
End Sub

Private Sub scrlStatBonus_Change(Index As Integer)
    Select Case Index
        Case 1
            text = "+ Str: "
        Case 2
            text = "+ End: "
        Case 3
            text = "+ Int: "
        Case 4
            text = "+ Blck: "
        Case 5
            text = "+ Will: "
        Case 6
            text = "+ Crit: "
        Case 7
            text = "+ LiFe: "
        Case 8
            text = "+ MoveSp: "
        Case 9
            text = "+ HP Regen: "
        Case 10
            text = "+ MP Regen: "
        Case 11
            text = "+ Crit Mul: "
        Case 12
            text = "+ Spell Mul:"
    End Select
            
    lblStatBonus(Index).Caption = text & scrlStatBonus(Index).Value
    Sets(lstSets.ListIndex + 1).Stat(Index, scrlItems.Value) = scrlStatBonus(Index).Value
    
End Sub

Private Sub txtName_Change()
    Sets(lstSets.ListIndex + 1).Name = txtName.text
End Sub
